package com.sinosoft.web;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author loujiang
 * @date 2020/12/21 2:01 下午
 * @NOTE:
 */
@RestController
public class HelloWorldController {

    /**
     * 获取启动端口号
     */
    @Value("${server.port}")
    String  port;
    @RequestMapping("sayHi")
    public String  sayHi()
    {
        return  "hello this  server port is "+port;
    }

}
